<!doctype HTML>
<html class="reftest-wait">
<meta charset="utf8">
<title>Content Visibility: auto, scroll away and back (Reference)</title>
<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<script src="/common/reftest-wait.js"></script>

<style>
.spacer {
  height: 10000px;
}
#child {
  width: 100px;
  height: 100px;
  background: green;
  position: relative
}
#target {
  width: 10px;
  height: 10px;
}

</style>

<div>
  <div id=child></div>
</div>
<div class=spacer></div>
<div id=target></div>

<script>
  requestAnimationFrame(takeScreenshot);
</script>

</html>
